<admintpl file="header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a>列表</a></li>
		</ul>
		
		<php>
			$action=array("1"=>"智勇三张","2"=>"海盗船长","3"=>"转盘","4"=>"开心牛仔","5"=>"二八贝");
			$status=array("0"=>"进行中","1"=>"正常结束","2"=>"主播关闭","3"=>"意外结束");
			$type=array("0"=>"否","1"=>"是");
		</php>
		<form class="well form-search" method="post" action="{:U('Game/index')}">
			游戏类型： 
			<select class="select_2" name="action">
				<option value="">全部</option>
				<volist name="action" id="v">
					<option value="{$key}" <if condition="$formget.action eq $key">selected</if> >{$v}</option>
				</volist>

			</select> &nbsp;&nbsp;
			
			主播： 
			<input type="text" name="keyword" style="width: 200px;" value="{$formget.keyword}" placeholder="请输入主播id...">
			<input type="submit" class="btn btn-primary" value="搜索">
		</form>	
		<form method="post" class="js-ajax-form" action="">
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th align="center">ID</th>
						<th>游戏类型</th>
						<th>主播（ID）</th>
						<th>开始时间</th>
						<th>结束时间</th>
						<th>游戏状态</th>
						<th>系统干预</th>
						<!-- <th>人工干预</th> -->
						<th align="center">{:L('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>
					<foreach name="lists" item="vo">
					<tr>
						<td align="center">{$vo.id}</td>
						<td>{$action[$vo['action']]}</td>
						<td>{$vo['userinfo']['user_nicename']} ( {$vo['liveuid']} )</td>
						<td>{$vo.starttime|date="Y-m-d H:i:s",###}</td>
						<td>
							<if condition="$vo['status'] eq '0'">
								进行中
							<else/>
								{$vo.endtime|date="Y-m-d H:i:s",###}
							</if>
						</td>
						<td>{$status[$vo['state']]}</td>
						<td>{$type[$vo['isintervene']]}</td>
						<!-- <td>{$type[$vo['intervene_admin']]}</td> -->
						<td align="center">	
							<a href="{:U('Game/index2',array('gameid'=>$vo['id'],'result'=>$vo['result']))}" >详情</a>
						</td>
					</tr>
					</foreach>
				</tbody>
			</table>
		</form>
		<div class="pagination">{$page}</div>
	</div> 
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>